window.onload = function () {
    const group = document.getElementById('moving-light-group');
    const pathForLength = group.querySelector('.light-ray-sharp');
    const lightLength = 75;

    const pathLength = pathForLength.getTotalLength();
    group.style.strokeDasharray = `${lightLength} ${pathLength - lightLength}`;
    const animation = document.getElementById('border-animation');
    animation.setAttribute('from', '0');
    animation.setAttribute('to', `-${pathLength}`);

}